
import sqlite3

def insertDatas(data):
	conne = sqlite3.connect("/root/poetrise.sqlite")
	curs = conne.cursor()
	sql = "creat table if not exist poets (id integer primary key autoincrement, title text, author text, content text)"
	curs.execute(sql)
	insert = "insert into poets values (?, ?, ?)"
	curs.execute(insert, data)
	conne.commit()
	# step 4:close
	conne.close()
